package com.ruoyi.temu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.temu.mapper.TemuSubPurchaseOrderSkuMapper;
import com.ruoyi.temu.domain.TemuSubPurchaseOrderSku;
import com.ruoyi.temu.service.ITemuSubPurchaseOrderSkuService;

/**
 * 备货单sku信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
@Service
public class TemuSubPurchaseOrderSkuServiceImpl implements ITemuSubPurchaseOrderSkuService 
{
    @Autowired
    private TemuSubPurchaseOrderSkuMapper temuSubPurchaseOrderSkuMapper;

    /**
     * 查询备货单sku信息
     * 
     * @param subPurchaseOrderSn 备货单sku信息主键
     * @return 备货单sku信息
     */
    @Override
    public TemuSubPurchaseOrderSku selectTemuSubPurchaseOrderSkuBySubPurchaseOrderSn(String subPurchaseOrderSn)
    {
        return temuSubPurchaseOrderSkuMapper.selectTemuSubPurchaseOrderSkuBySubPurchaseOrderSn(subPurchaseOrderSn);
    }

    /**
     * 查询备货单sku信息列表
     * 
     * @param temuSubPurchaseOrderSku 备货单sku信息
     * @return 备货单sku信息
     */
    @Override
    public List<TemuSubPurchaseOrderSku> selectTemuSubPurchaseOrderSkuList(TemuSubPurchaseOrderSku temuSubPurchaseOrderSku)
    {
        return temuSubPurchaseOrderSkuMapper.selectTemuSubPurchaseOrderSkuList(temuSubPurchaseOrderSku);
    }

    /**
     * 新增备货单sku信息
     * 
     * @param temuSubPurchaseOrderSku 备货单sku信息
     * @return 结果
     */
    @Override
    public int insertTemuSubPurchaseOrderSku(TemuSubPurchaseOrderSku temuSubPurchaseOrderSku)
    {
        return temuSubPurchaseOrderSkuMapper.insertTemuSubPurchaseOrderSku(temuSubPurchaseOrderSku);
    }

    /**
     * 修改备货单sku信息
     * 
     * @param temuSubPurchaseOrderSku 备货单sku信息
     * @return 结果
     */
    @Override
    public int updateTemuSubPurchaseOrderSku(TemuSubPurchaseOrderSku temuSubPurchaseOrderSku)
    {
        return temuSubPurchaseOrderSkuMapper.updateTemuSubPurchaseOrderSku(temuSubPurchaseOrderSku);
    }

    /**
     * 批量删除备货单sku信息
     * 
     * @param subPurchaseOrderSns 需要删除的备货单sku信息主键
     * @return 结果
     */
    @Override
    public int deleteTemuSubPurchaseOrderSkuBySubPurchaseOrderSns(String[] subPurchaseOrderSns)
    {
        return temuSubPurchaseOrderSkuMapper.deleteTemuSubPurchaseOrderSkuBySubPurchaseOrderSns(subPurchaseOrderSns);
    }

    /**
     * 删除备货单sku信息信息
     * 
     * @param subPurchaseOrderSn 备货单sku信息主键
     * @return 结果
     */
    @Override
    public int deleteTemuSubPurchaseOrderSkuBySubPurchaseOrderSn(String subPurchaseOrderSn)
    {
        return temuSubPurchaseOrderSkuMapper.deleteTemuSubPurchaseOrderSkuBySubPurchaseOrderSn(subPurchaseOrderSn);
    }
}
